package com.sptpc.demo.controller.requests;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AddOrderRequest {
    @NotNull
    @Length(min = 1, message = "至少选择一种饮品")
    private List<Integer> items;
    @NotBlank(message = "用户名不能为空")
    private String customer;

}
